<template>
  <div class="book-name van-ellipsis">{{ text }}</div>
</template>

<script>
export default {
  props: {
    text: {
      type: String,
      default: ''
    }
  }
}
</script>

<style lang="scss" scoped>
.book-name {
  position: relative;
  font-size: 16px;
  padding: 10px 0 10px 20px;
  color: #d563a2;
  background-color: #f0f0f0;

  &::before {
    position: absolute;
    content: '';
    left: 10px;
    top: 10px;
    width: 4px;
    height: 20px;
    background-color: skyblue;
  }
}
</style>
